<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>26.类class</title>
</head>
<body>
<script>
  class SmartPhone {
     constructor(brand,name) {
       this.brand = brand
       this.name = name
     }

     call(){
       console.log('打电话')
     }
  }

  let huawei = new SmartPhone('huawei','华为')
  huawei.call()
  console.log(huawei)


</script>
</body>
</html>